<template>
	<p><button @click="show = !show">显示/隐藏</button></p>
	<MyComponent>
		<div v-show="show" class="gsap-box"></div>
	</MyComponent>
</template>

<script setup>
	import { ref } from "vue" 
	import MyComponent from '@/components/MyComponent.vue'
	
	const show = ref(true) 
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
